package com.itcanteen.medical.patient.service;

import com.itcanteen.medical.common.vo.CommonResponse;
import com.itcanteen.medical.patient.entity.Doctor;
import com.itcanteen.medical.patient.entity.Patient;
import com.itcanteen.medical.patient.entity.Work;

import java.util.List;

public interface PatientService {
    public List<Patient> getAll(Patient patient);


    //挂号
    Patient findByid(Patient patient);

    //查询患者端
    List<Patient> findAll();

    /*
     * 所有医生的列表
     * */
    public List<Doctor> findByDoctorAll();

    /*
     * 分页加模糊
     * */
    public List<Doctor> getAllDoctor(Doctor doctor, Integer page, Integer rows);

    /*
     * 查询医生的工作时间
     * */
    public List<Work> findByTime(Long doctorId);

    /*
     * 根据用户选的就诊时间产看就诊时间是否过期
     * */
    public CommonResponse findByWork(Long workId);


}
